package com.solutec.tag16interfaces.figuren2;

public class Aufgabe01_modified {

	public static void main(String[] args) {
		
		Kreis k1 = new Kreis();
		k1.radius = 100;
		
		Kreis k2 = new Kreis();
		k2.radius = 22;
		
		Object erg = getMax(k1, k2);
		System.out.println( erg );
	}
	
	
	static Comparable getMax(Comparable c1, Comparable c2) {
		if( c1.compareTo(c2) > 0 )
			return c1;
		
		return c2;
	}

}
